Skip to content

Consolidate test layers to share PLONE_RESTAPI_DX_FIXTURE base#1988

Merged
davisagli merged 1 commit into9.x.xfrom
consolidate-test-layers-9
Feb 19, 2026
Merged

Consolidate test layers to share PLONE_RESTAPI_DX_FIXTURE base#1988
davisagli merged 1 commit into9.x.xfrom
consolidate-test-layers-9

Conversation

@wesleybl
Copy link
Member

@wesleybl wesleybl commented Feb 19, 2026

Backport of #1984 to plone.restapi 9


📚 Documentation preview 📚: https://plonerestapi--1988.org.readthedocs.build/

Make PloneRestApiDXPAMLayer and PloneRestApiDXIterateLayer extend
PLONE_RESTAPI_DX_FIXTURE instead of duplicating its setup or using
a separate lineage. This eliminates redundant ZCML + profile loading
cycles, saving ~5-15s of layer setup per test run.

Also switch test_boolean_value and test_indexers from FUNCTIONAL to
INTEGRATION testing (they never make HTTP calls or commit transactions).

Fix pre-existing test isolation bug in test_dxfield_publication where
transaction.commit() in IntegrationTesting leaked portal_timezone
into the shared DemoStorage.

Fixes #1983
@mister-roboto
Copy link

@wesleybl thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@wesleybl
Copy link
Member Author

@jenkins-plone-org please run jobs

@davisagli davisagli merged commit ae63414 into 9.x.x Feb 19, 2026
13 checks passed
@davisagli davisagli deleted the consolidate-test-layers-9 branch February 19, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants